package com.example.contentprovider;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.widget.Toast;

import com.example.contentprovider.dao.UserDaoImpl;
import com.example.contentprovider.pojo.User;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        UserDaoImpl userDao = new UserDaoImpl(this);
        userDao.addUser(new User("ss","ss","f",1));
        User userById = userDao.getUserById(1);
        System.out.println(userById.toString());

    }
}